//
//  CZQResumeModel.m
//  coachmanage
//
//  Created by 众拳科技 on 2018/3/28.
//  Copyright © 2018年 众拳科技. All rights reserved.
//

#import "CZQResumeModel.h"
#define ResumeFilePath [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@resume.data",[[NSUserDefaults standardUserDefaults]objectForKey:@"UserID"]]]
#pragma mark - 教练简历
@implementation CZQResumeModel

MJCodingImplementation

+ (void)saveResume:(CZQResumeModel *)resume
{
    // 归档
    [NSKeyedArchiver archiveRootObject:resume toFile:ResumeFilePath];
}

+(CZQResumeModel *)resume
{
    // 读取帐号
    CZQResumeModel *resume = [NSKeyedUnarchiver unarchiveObjectWithFile:ResumeFilePath];
    
    if (!resume) {
        
        resume = [[CZQResumeModel alloc] init];
    }
    
    return resume;
}


@end

#pragma mark - 工作经验
@implementation CZQWorkExpModel

@end
#pragma mark - 培训经验
@implementation CZQTrainingExpModel

@end

#pragma mark - 获得证书
@implementation CZQCertificateExpModel

@end

#pragma mark - 教育经历
@implementation CZQEducationExpModel

@end
